<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>

	<h:panelGrid columns="1" style="width:100%">
		<ui:include src="supplierInfoInputPanel.xhtml"></ui:include>
		<ui:include src="supplierProductInputPanel.xhtml"></ui:include>
		<h:panelGrid columns="4" style="width:100%">
			<p:commandButton icon="add" value="new"
				update=":listForm,:detailForm,:headerForm">
				<f:setPropertyActionListener value="#{supplierModel.newObject}"
					target="#{supplierController.modelCurrent}" />
			</p:commandButton>
			<p:commandButton value="Save" ajax="true"
				update=":listForm,:detailForm,:headerForm"
				actionListener="#{supplierController.saveCurrent}" />
			<p:commandButton id="Refresh" value="Refresh" ajax="true"
				update=":listForm,:detailForm,:headerForm"
				actionListener="#{supplierController.refreshCurrent}" />
			<p:commandButton value="Delete" icon="delete" ajax="true" update=":dialogForm"
				 oncomplete="deleteDlg.show()" />
		</h:panelGrid>
	</h:panelGrid>
</ui:composition>

</html>